Gradient of refractive index